/**
 * MyApplyDaoImpl.java
 */
package com.prs.crm.dao.official.impl;

import java.io.Serializable;
import java.sql.SQLException;
import java.util.Collection;
import java.util.List;

import org.courser.hibernate.QueryExample;
import org.courser.ui.PaginationSupport;
import org.hibernate.Criteria;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Order;
import org.springframework.orm.hibernate3.HibernateCallback;

import com.prs.crm.dao.impl.BaseDaoImpl;
import com.prs.crm.dao.official.MyApplyDao;
import com.prs.crm.domain.oa.AnnouncementPredefineFlow;
import com.prs.crm.domain.official.MyApply;

/**
 * @author ZhuDongMei
 * @E-mail:1223984339@qq.com
 * @qq:1223984339
 * @version 创建时间：2011-3-16 上午11:12:28 简单说明
 */
/**
 * @author Administrator
 *
 */
public class MyApplyDaoImpl extends BaseDaoImpl<MyApply> implements MyApplyDao {
	@SuppressWarnings("unchecked")
	@Override
	public List<MyApply> getAllMyApplys() {
		return (List<MyApply>) this.getHibernateTemplate().execute(new HibernateCallback() {
			public Object doInHibernate(Session session)
					throws HibernateException, SQLException {
				Criteria criteria=session.createCriteria(MyApply.class);
				return criteria.list();
			}
		});
	}

	
}
